.TH "AVI2File" 3 "13 Oct 2009" "Version 2" "zebulon" \" -*- nroff -*-
.ad l
.nh
.SH NAME
AVI2File \- 
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <avi.h>\fP
.PP
Inherits \fBAVIFile\fP.
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "virtual void \fBInit\fP (int format, int sampleFrequency, int indexType)"
.br
.ti -1c
.RI "virtual bool \fBWriteFrame\fP (\fBFrame\fP *frame)"
.br
.ti -1c
.RI "virtual void \fBWriteRIFF\fP (void)"
.br
.ti -1c
.RI "virtual void \fBsetDVINFO\fP (DVINFO &)"
.br
.in -1c
.SH "Detailed Description"
.PP 
writing Type 2 (separate audio data) DV AVIs
.PP
This file type contains both audio and video tracks. It is therefore more compatible to certain Windows programs, which expect any AVI having both audio and video tracks. The video tracks contain the raw DV data (as in type 1) and the extracted audio tracks.
.PP
Note that because the DV data contains audio information anyway, this means duplication of data and a slight increase of file size. 
.SH "Member Function Documentation"
.PP 
.SS "void AVI2File::Init (int format, int sampleFrequency, int indexType)\fC [virtual]\fP"Initialize the AVI structure to its initial state, either for PAL or NTSC format
.PP
Initialize the \fBAVIFile\fP attributes: mainHdr, indx, ix00, idx1
.PP
\fBTodo\fP
.RS 4
consolidate \fBAVIFile::Init\fP, \fBAVI1File::Init\fP, \fBAVI2File::Init\fP. They are somewhat redundant. 
.RE
.PP
\fBParameters:\fP
.RS 4
\fIformat\fP pass AVI_PAL or AVI_NTSC 
.br
\fIsampleFrequency\fP the sample frequency of the audio content 
.br
\fIindexType\fP pass AVI_SMALL_INDEX or AVI_LARGE_INDEX 
.RE
.PP

.PP
Reimplemented from \fBAVIFile\fP.
.SS "bool AVI2File::WriteFrame (\fBFrame\fP * frame)\fC [virtual]\fP"Write a DV video frame
.PP
\fBParameters:\fP
.RS 4
\fIframe\fP the frame to write 
.RE
.PP

.PP
Reimplemented from \fBAVIFile\fP.
.SS "void AVI2File::WriteRIFF (void)\fC [virtual]\fP"Writes out the directory structure
.PP
For all items in the directory list that have not been written yet, it seeks to the file position where that item should be stored and writes the type and length field. If the item has a name, it will also write the name field.
.PP
\fBNote:\fP
.RS 4
It does not write the contents of any item. Use WriteChunk to do that. 
.RE
.PP

.PP
Reimplemented from \fBAVIFile\fP.

.SH "Author"
.PP 
Generated automatically by Doxygen for zebulon from the source code.
